package io.github.talelin.latticy.model.oms;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.github.talelin.latticy.model.BaseModel;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author generator@wulongbo
 * @since 2022-06-28
 */
@Data
@Accessors(chain = true)
@TableName("t_order_item")
public class OrderItemDO {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 订单号
     */
    private Long orderNo;

    /**
     * 产品sku
     */
    private String sku;

    /**
     * 下单时商品的名称(订单快照)
     */
    private String productName;

    /**
     * 下单时商品的主图(订单快照)
     */
    private String productIcon;

    /**
     * 下单时商品的价格(订单快照)
     */
    private BigDecimal productPrice;

    /**
     * 数量(订单快照)
     */
    private Integer productNum;

    @JsonIgnore
    private Date createTime;


}
